package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 订单对象 ord_order
 * 
 * @author ruoyi
 * @date 2023-10-12
 */
public class OrderBy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long orderId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 商家id */
    @Excel(name = "商家id")
    private Long businessId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private Long payment;

    /** 优惠卷id */
    @Excel(name = "优惠卷id")
    private Long preferentialId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private Long money;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String number;

    /** 购物份数 */
    @Excel(name = "购物份数")
    private Long total;

    /** 订单详情id */
    @Excel(name = "订单详情id")
    private Long detailsId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 备注 */
    private String notes;

    /** 订单详情信息 */

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setPayment(Long payment) 
    {
        this.payment = payment;
    }

    public Long getPayment() 
    {
        return payment;
    }
    public void setPreferentialId(Long preferentialId) 
    {
        this.preferentialId = preferentialId;
    }

    public Long getPreferentialId() 
    {
        return preferentialId;
    }
    public void setMoney(Long money) 
    {
        this.money = money;
    }

    public Long getMoney() 
    {
        return money;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }
    public void setDetailsId(Long detailsId) 
    {
        this.detailsId = detailsId;
    }

    public Long getDetailsId() 
    {
        return detailsId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }
    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("status", getStatus())
            .append("businessId", getBusinessId())
            .append("productId", getProductId())
            .append("payment", getPayment())
            .append("preferentialId", getPreferentialId())
            .append("money", getMoney())
            .append("number", getNumber())
            .append("total", getTotal())
            .append("detailsId", getDetailsId())
            .append("userId", getUserId())
            .append("submitTime", getSubmitTime())
            .append("paymentTime", getPaymentTime())
            .append("sendTime", getSendTime())
            .append("deliveryTime", getDeliveryTime())
            .append("notes", getNotes())
            .toString();
    }
}
